plat: xilinx: zynqmp: Make fpga load blocking until completed
authorSiva Durga Prasad Paladugu <[email protected]>
Wed, 7 Feb 2018 07:43:01 +0000 (13:13 +0530)
committerSiva Durga Prasad Paladugu <[email protected]>
Thu, 17 May 2018 09:49:10 +0000 (15:19 +0530)
This patch makes bitstream load blocking call and waits until
bitstream is loaded successfully or return with error.

Signed-off-by: Siva Durga Prasad Paladugu <[email protected]>
Tested-by: Avesh Khan <[email protected]>
plat/xilinx/zynqmp/pm_service/pm_api_sys.c

index 07c04e72491edad02c464f53a537af25cd0b9d30..69bd53b2ff3a8ff3fb6ed719c4fe0a5cecf4ba10 100644 (file)
@@ -538,7 +538,7 @@ enum pm_ret_status pm_fpga_load(uint32_t address_low,
        /* Send request to the PMU */
        PM_PACK_PAYLOAD5(payload, PM_FPGA_LOAD, address_high, address_low,
                                                size, flags);
-       return pm_ipi_send(primary_proc, payload);
+       return pm_ipi_send_sync(primary_proc, payload, NULL, 0);
 }
 
 /**